package com.example.demo.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.example.demo.entity.Husband;
import com.example.demo.repository.HusbandRepository;

@Service
public class HusbandService {

	@Resource
	private HusbandRepository husbandRepository;
	
	
	public List<Husband> findAll() {
		return husbandRepository.findAll();
	}
	
}
